#include "user_oled.h"

int oled_printf(uint8_t x, uint8_t y, const char *format, ...)
{
  char buffer[512]; 
  va_list arg;      
  int len;          

  va_start(arg, format);
  len = vsnprintf(buffer, sizeof(buffer), format, arg);
  va_end(arg);

  OLED_ShowStr(x, y, buffer, 8);
  return len;
}